<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.core.cache&rdquo;</title>
        </head>
        <body><h1 class="module">Module s.c.cache</h1><span id="part">Part of <a href="sympy.core.html">sympy.core</a></span><div class="toplevel"><div><p>Caching facility for SymPy</p>
</div></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.print_cache">print_cache</a></td><td><div><p>print cache content</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.clear_cache">clear_cache</a></td><td><div><p>clear cache content</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.__cacheit_nocache">__cacheit_nocache</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.__cacheit">__cacheit</a></td><td><div><p>caching decorator.</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.__cacheit_debug">__cacheit_debug</a></td><td><div><p>cacheit + code to check cache consitency</p>
</div></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.core.cache.__cacheit_nondummy">__cacheit_nondummy</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.cache.MemoizerArg.html">MemoizerArg</a></td><td><div><p>See Memoizer.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.cache.Memoizer.html">Memoizer</a></td><td><div><p>Memoizer function decorator generator.</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.core.cache.Memoizer_nocache.html">Memoizer_nocache</a></td><td><span class="undocumented">Undocumented</span></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.print_cache">print_cache():</a></div>
            <div class="functionBody"><div><p>print cache content</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.clear_cache">clear_cache():</a></div>
            <div class="functionBody"><div><p>clear cache content</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.__cacheit_nocache">__cacheit_nocache(func):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.__cacheit">__cacheit(func):</a></div>
            <div class="functionBody"><pre>caching decorator.

important: the result of cached function must be *immutable*


Example
-------

@cacheit
def f(a,b):
    return a+b


@cacheit
def f(a,b):
    return [a,b] # <-- WRONG, returns mutable object


to force cacheit to check returned results mutability and consistency,
set environment variable SYMPY_USE_CACHE to 'debug'</pre></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.__cacheit_debug">__cacheit_debug(func):</a></div>
            <div class="functionBody"><div><p>cacheit + code to check cache consitency</p>
</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.core.cache.__cacheit_nondummy">__cacheit_nondummy(func):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div></body>
        